import cv2

import utils


model_path = "model/realesrgan_jit.pt"
# model_path = "model/RealESRGAN_x4plus.pth"
model = utils.RealESRGANer(4, model_path)
file_path = 'image/0014.jpg'
img = cv2.imread(file_path, cv2.IMREAD_UNCHANGED)
img_sr = model.enhance(img, outscale=4)
